A5Storage::SubContainer DeleteItem Method

Syntax

.DeleteItem as L (TargetPath as C)

Arguments

TargetPathCharacter

The item to delete.

Returns

ResultLogical

Returns .T. if the operation succeeds, otherwise .F. (see .CallResult for additional error information.)

Description

Deletes an object. If the object does not exist, no error will be returned.

Example

dim SubContainer as A5Storage::SubContainer = null_value()
dim Item as A5Storage::DataItem = null_value()

CallResult = A5Storage::SubContainer::Open(SubContainer, "Provider='Disk';Container='c:\A5Webroot';", "logs")
? CallResult.Success
= .T.

? SubContainer.DeleteItem("MyTargetPath/MyObject")
= .T.